x86 emulation: fix bswap
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 20 Feb 2007 17:05:50 +0000 (17:05 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 20 Feb 2007 17:05:50 +0000 (17:05 +0000)
commit8d6da6a5f0712a7f5504ec75f12f5660198ae517
treeed299fdc9cf62a2552057a7858bb93ad7082a6a5
parentfe300600464ca9b82e1dc4b315d2d65c786bfa49
x86 emulation: fix bswap

REX.R needs to be decoded. Since it is simple to do, faster, and
smaller, let hardware do 32- and 64-bit BSWAP. 16-bite BSWAP is
undefined: emulate with observed behaviour (write zero).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/x86_emulate.c